package jtk.project4.fleet.field;


import java.awt.Dimension;

import javax.swing.border.Border;

import jtk.project4.fleet.domain.Employee;
import jtk.project4.fleet.domain.Equipment;
import jtk.project4.fleet.domain.TireCfg;
import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.ImageField;
import nl.coderight.jazz.form.field.NumberField;
import nl.coderight.jazz.form.field.SelectField;
import nl.coderight.jazz.form.field.TextField;
import nl.coderight.jazz.form.field.SpinnerField;

public class EquipmentTiresAxlesField extends GroupControl<TireCfg>{
	
	private NumberField objectIdField;
	private NumberField axlesField;
	private TextField typeField;
	private TextField dualField;

	
		public EquipmentTiresAxlesField(String bindId){
		setTitle(null);
		setBindID(bindId);
		createFields();
		createLayout();
	}

	private void createFields() {
		// TODO Auto-generated method stub

		//objectIdField = new NumberField("objectId",0);
		axlesField = new NumberField("axie",0);
		typeField = new TextField("type");
		dualField = new TextField("duals");
		axlesField.setPreferredSize(new Dimension(160,20));
		//objectIdField.setPreferredSize(new Dimension(160,20));
		typeField.setPreferredSize(new Dimension(160,20));
		dualField.setPreferredSize(new Dimension(160,20));
	}
	
	private void createLayout() {
		// TODO Auto-generated method stub
		setLayout(new FormLayout())

		.addLabel("#Axles")				.addField(axlesField)
		.addRow()
		.addLabel("Type")				.addField(typeField)		
		.addRow()
		.addLabel("Duals")				.addField(dualField)		
	
		;	
	}
	

}

